<?php
/**
 * Introduction: 商品订单附表  order_extend
 * @author: 杨陈鹏
 * @date: 2016/4/19 15:30
 * @email: yangchenpeng@cdlinglu.com
 */

namespace Common\Model;


use Think\Model;

class OrderExtendModel extends Model
{
    //定义数据库连接信息
    protected $connection;
    //定义模型字段
    protected $fileds = [
        'id',
        'order_id',
        'goods_id',
        'message',
        'nums',
        'price',
        'pay_total',
        'freight',
        'goods_attr_val_ids',
        'invitation',

    ];
    //定义表名
    protected $tableName = 'order_extend';

    /**
     * 初始化
     */
    public function _initialize()
    {
        $this->connection = C('Databaese');
    }
}